#include "PizzaStore2.h"

PizzaStore2::PizzaStore2(PizzaFactory *simplePizzaFactory)
{
    this->simplePizzaFactory = simplePizzaFactory;
}

Pizza *PizzaStore2::orderPizza(const string &type)
{
    Pizza *pizza = new Pizza();
    pizza = simplePizzaFactory->createPizza(type);
    return pizza;
}
